<html>
	<head>
		<title>
			<?php echo "Search results for "; $title; ?>
		</title>
	</head>
	<body>
		<?php echo $title; ?>
		<?php 
			echo '<br />';
			echo '<table border = "1">';
				for($i = 0;$i<sizeof($result[0]);$i++)
				{
					echo '<tr>
						<td>';
							echo implode(" ", $result[0][$i]); 

							echo form_open('instructor/instructor_student_info');
							
							$hidden = array(
								'name' => substr(implode(" ", $result[0][$i]), 0, strlen(implode(" ", $result[0][$i]))),	//get only the name
								//'name_value' => set_value('name');
								'student_number' => substr(implode(" ", $result[0][$i]), -9, 10)		//get only the student number
								//'sn_value' => set_value('student_number');
							);
							
							echo form_hidden('show_student_info', $hidden);
							
							$view = array(
								'value' => 'Show more',
							);
							echo form_submit($view);
							echo form_close();
					echo '</td>
					</tr>';
				}
			echo '</table>';
		?>
	<body>
</html>